package com.hjy.user.service.impl;

import com.hjy.service.CustomerService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class CustomerServiceImpl extends UnicastRemoteObject implements CustomerService {

    public CustomerServiceImpl() throws RemoteException{
        super();
    }

    @Override
    public String getCustomer(String name) throws RemoteException {
        return "查询用户："+name;
    }

    @Override
    public int addCustomer(String name) throws RemoteException {
        System.out.println("新增用户："+name);
        return 1;
    }
}
